# -*- coding: utf-8 -*-
"""
Created on Sun Oct 13 22:42:29 2019

@author: ASUS
"""

import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-1,1,50)#在-1到1之间平均生成50个点
#y = 2 * x + 1
y = x ** 2
plt.plot(x,y)
plt.show()